#!/bin/sh

# Disable cleanup alterator-setup
[ ! "$GLOBAL_OEM_NO_CLEANUP" = yes ] ||
	sed -i 's/^REMOVE_SELF=.*/REMOVE_SELF=0/' /etc/alterator-setup/config

# Set alterator-setup steps
if [ -n "$GLOBAL_OEM_STEPS" ]; then
	rm -f /etc/alterator-setup/steps
	for OEM_STEP in $GLOBAL_OEM_STEPS; do
		echo $OEM_STEP >> /etc/alterator-setup/steps
	done
fi

if [ -n "$GLOBAL_OEM_INSTALL" ]; then
	mkdir -p /var/lib/install3
	tar -xf /.install3.tar -C /var/lib/install3/
	rm /.install3.tar
	touch /var/lib/install3/lists/.base
fi

:
